<?php
/**
 * Enum class for the class names
 * @author Youssef Driouach
 *
 */

class Application_Model_Enum_ClassName {
	const ca = 'Car';
	const ho = 'House';
	const pa = 'Parking';
	const la = 'Land';
	const ap = 'Apartment';
	const mo = 'Motorcycle';
	
	public static function exist($var)
	{
		$url = null;
		switch ($var){
			case 'book':
				$url = 'Book';
				break;
			case 'other':
				$url = 'Other';
				break;
			case 'desktop':
				$url = 'Desktop';
				break;
			case 'laptop':
				$url = 'Laptop';
				break;
			case 'tv':
				$url = 'Tv';
				break;
			case 'phone':
				$url = 'Phone';
				break;
			case 'clothing':
				$url = 'Clothing';
				break;
			case 'car':
				$url = 'Car';
				break;
			case 'house':
				$url = 'House';
				break;
			case 'parking':
				$url = 'Parking';
				break;
			case 'land':
				$url = 'Land';
				break;
			case 'apartment':
				$url = 'Apartment';
				break;
			case 'motorcycle':
				$url = 'Motorcycle';
				break;
			default:
				$url = null;
		}
		return $url;
	}
}

?>